how to find longest substring

join shbcf.ru